package com.androidx.p013lv.mine.databinding;

import android.util.SparseIntArray;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;
import androidx.databinding.DataBindingComponent;
import androidx.databinding.ViewDataBinding;
import androidx.databinding.adapters.TextViewBindingAdapter;
import com.androidx.p013lv.base.view.StatusControlLayout;
import com.androidx.p013lv.mine.C1206BR;
import com.androidx.p013lv.mine.fragment.BuyVideoFragment;
import com.androidx.p013lv.mine.fragment.CollectFragment;
import com.androidx.p013lv.mine.generated.callback.OnClickListener;
import com.scwang.smartrefresh.layout.SmartRefreshLayout;
import com.yanzhenjie.recyclerview.SwipeRecyclerView;

/* renamed from: com.androidx.lv.mine.databinding.FragmentCollectBindingImpl */
public class FragmentCollectBindingImpl extends FragmentCollectBinding implements OnClickListener.Listener {
    private static final ViewDataBinding.IncludedLayouts sIncludes = null;
    private static final SparseIntArray sViewsWithIds = null;
    private final View.OnClickListener mCallback14;
    private final View.OnClickListener mCallback15;
    private long mDirtyFlags;
    private final LinearLayout mboundView0;
    private final LinearLayout mboundView4;
    private final TextView mboundView5;
    private final TextView mboundView6;

    /* access modifiers changed from: protected */
    @Override // androidx.databinding.ViewDataBinding
    public boolean onFieldChange(int i, Object obj, int i2) {
        return false;
    }

    public FragmentCollectBindingImpl(DataBindingComponent dataBindingComponent, View view) {
        this(dataBindingComponent, view, mapBindings(dataBindingComponent, view, 7, sIncludes, sViewsWithIds));
    }

    private FragmentCollectBindingImpl(DataBindingComponent dataBindingComponent, View view, Object[] objArr) {
        super(dataBindingComponent, view, 0, (SwipeRecyclerView) objArr[2], (SmartRefreshLayout) objArr[1], (StatusControlLayout) objArr[3]);
        this.mDirtyFlags = -1;
        LinearLayout linearLayout = (LinearLayout) objArr[0];
        this.mboundView0 = linearLayout;
        linearLayout.setTag(null);
        LinearLayout linearLayout2 = (LinearLayout) objArr[4];
        this.mboundView4 = linearLayout2;
        linearLayout2.setTag(null);
        TextView textView = (TextView) objArr[5];
        this.mboundView5 = textView;
        textView.setTag(null);
        TextView textView2 = (TextView) objArr[6];
        this.mboundView6 = textView2;
        textView2.setTag(null);
        this.recycler.setTag(null);
        this.refresh.setTag(null);
        this.statusLayout.setTag(null);
        setRootTag(view);
        this.mCallback15 = new OnClickListener(this, 2);
        this.mCallback14 = new OnClickListener(this, 1);
        invalidateAll();
    }

    @Override // androidx.databinding.ViewDataBinding
    public void invalidateAll() {
        synchronized (this) {
            this.mDirtyFlags = 32;
        }
        requestRebind();
    }

    @Override // androidx.databinding.ViewDataBinding
    public boolean hasPendingBindings() {
        synchronized (this) {
            if (this.mDirtyFlags != 0) {
                return true;
            }
            return false;
        }
    }

    @Override // androidx.databinding.ViewDataBinding
    public boolean setVariable(int i, Object obj) {
        if (C1206BR.status == i) {
            setStatus((Integer) obj);
        } else if (C1206BR.selectNum == i) {
            setSelectNum((Integer) obj);
        } else if (C1206BR.statusRefresh == i) {
            setStatusRefresh((Integer) obj);
        } else if (C1206BR.click == i) {
            setClick((CollectFragment.OnClick) obj);
        } else if (C1206BR.isEdit != i) {
            return false;
        } else {
            setIsEdit((Boolean) obj);
        }
        return true;
    }

    @Override // com.androidx.p013lv.mine.databinding.FragmentCollectBinding
    public void setStatus(Integer num) {
        this.mStatus = num;
        synchronized (this) {
            this.mDirtyFlags |= 1;
        }
        notifyPropertyChanged(C1206BR.status);
        super.requestRebind();
    }

    @Override // com.androidx.p013lv.mine.databinding.FragmentCollectBinding
    public void setSelectNum(Integer num) {
        this.mSelectNum = num;
        synchronized (this) {
            this.mDirtyFlags |= 2;
        }
        notifyPropertyChanged(C1206BR.selectNum);
        super.requestRebind();
    }

    @Override // com.androidx.p013lv.mine.databinding.FragmentCollectBinding
    public void setStatusRefresh(Integer num) {
        this.mStatusRefresh = num;
        synchronized (this) {
            this.mDirtyFlags |= 4;
        }
        notifyPropertyChanged(C1206BR.statusRefresh);
        super.requestRebind();
    }

    @Override // com.androidx.p013lv.mine.databinding.FragmentCollectBinding
    public void setClick(CollectFragment.OnClick onClick) {
        this.mClick = onClick;
        synchronized (this) {
            this.mDirtyFlags |= 8;
        }
        notifyPropertyChanged(C1206BR.click);
        super.requestRebind();
    }

    @Override // com.androidx.p013lv.mine.databinding.FragmentCollectBinding
    public void setIsEdit(Boolean bool) {
        this.mIsEdit = bool;
        synchronized (this) {
            this.mDirtyFlags |= 16;
        }
        notifyPropertyChanged(C1206BR.isEdit);
        super.requestRebind();
    }

    /* access modifiers changed from: protected */
    @Override // androidx.databinding.ViewDataBinding
    public void executeBindings() {
        long j;
        boolean z;
        boolean z2;
        String str;
        synchronized (this) {
            j = this.mDirtyFlags;
            this.mDirtyFlags = 0;
        }
        Integer num = this.mStatus;
        Integer num2 = this.mSelectNum;
        Integer num3 = this.mStatusRefresh;
        CollectFragment.OnClick onClick = this.mClick;
        Boolean bool = this.mIsEdit;
        int i = 0;
        int safeUnbox = (j & 33) != 0 ? ViewDataBinding.safeUnbox(num) : 0;
        long j2 = j & 34;
        if (j2 != 0) {
            z = ViewDataBinding.safeUnbox(num2) == 0;
            if (j2 != 0) {
                j = z ? j | 512 : j | 256;
            }
        } else {
            z = false;
        }
        int safeUnbox2 = (j & 36) != 0 ? ViewDataBinding.safeUnbox(num3) : 0;
        long j3 = j & 48;
        if (j3 != 0) {
            z2 = ViewDataBinding.safeUnbox(bool);
            if (j3 != 0) {
                j |= z2 ? 128 : 64;
            }
            if (!z2) {
                i = 8;
            }
        } else {
            z2 = false;
        }
        String str2 = null;
        if ((j & 256) != 0) {
            str = String.valueOf(("刪除（" + num2) + ")");
        } else {
            str = null;
        }
        long j4 = j & 34;
        if (j4 != 0) {
            if (z) {
                str = "刪除";
            }
            str2 = str;
        }
        if ((j & 48) != 0) {
            this.mboundView4.setVisibility(i);
            CollectFragment.isSwipeMenuList(this.recycler, z2);
            CollectFragment.refreshEnabled(this.refresh, z2);
        }
        if ((32 & j) != 0) {
            this.mboundView5.setOnClickListener(this.mCallback14);
            this.mboundView6.setOnClickListener(this.mCallback15);
        }
        if (j4 != 0) {
            TextViewBindingAdapter.setText(this.mboundView6, str2);
        }
        if ((j & 36) != 0) {
            BuyVideoFragment.refreshStatus(this.refresh, safeUnbox2);
        }
        if ((j & 33) != 0) {
            BuyVideoFragment.showStatusView(this.statusLayout, safeUnbox);
        }
    }

    @Override // com.androidx.p013lv.mine.generated.callback.OnClickListener.Listener
    public final void _internalCallbackOnClick(int i, View view) {
        boolean z = false;
        if (i == 1) {
            CollectFragment.OnClick onClick = this.mClick;
            if (onClick != null) {
                z = true;
            }
            if (z) {
                onClick.allSelectedBtn();
            }
        } else if (i == 2) {
            CollectFragment.OnClick onClick2 = this.mClick;
            if (onClick2 != null) {
                z = true;
            }
            if (z) {
                onClick2.deleteBtn();
            }
        }
    }
}
